package com.czk.model.responsebilitychain;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/24 14:25
 */
public abstract class Approver {
    Approver approver;// 下一个处理者
    String name;// 名字

    public Approver(String name) {
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }
    // 处理审批请求的方法，处理是子类完成，做成抽象
    public abstract void processRequest(PurchaseRequest purchaseRequest);
}
